package com.zeei.bfs.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zeei.bfs.dao.FileInfoDao;
import com.zeei.bfs.service.FileInfoService;
import com.zeei.bfs.vo.FileInfoVO;

/**
 * Project Name:bfs
 * File Name:FileInfoMapperImpl.java
 * Package Name:com.zeei.bfs.service.impl
 * Date:2016年12月22日下午8:10:44 Copyright (c) 2016, ZEEI All Rights Reserved. 
 *
 * ClassName:FileInfoMapperImpl
 * Function: 
 * 
 * @author DingXiangGuang
 * @since JDK 1.8
 */
@Service("FileInfoServiceImpl")
public class FileInfoServiceImpl implements FileInfoService {

	@Autowired
	private FileInfoDao fileInfoDao;

	/**
	 * @see com.zeei.bfs.service.FileInfoService#deleteByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public Boolean deleteByPrimaryKey(Integer fileid) {
		int count = fileInfoDao.deleteByPrimaryKey(fileid);
		return count > 0;
	}

	/**
	 * @see com.zeei.bfs.service.FileInfoService#insertSelective(com.zeei.bfs.vo.FileInfoVO)
	 */
	@Override
	public Boolean insertSelective(FileInfoVO record) {
		int count = fileInfoDao.insertSelective(record);
		return count > 0;
	}

	/**
	 * @see com.zeei.bfs.service.FileInfoService#selectByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public FileInfoVO selectByPrimaryKey(Integer fileid) {
		FileInfoVO fileinfo = fileInfoDao.selectByPrimaryKey(fileid);
		return fileinfo;
	}

	/**
	 * @see com.zeei.bfs.service.FileInfoService#updateByPrimaryKeySelective(com.zeei.bfs.vo.FileInfoVO)
	 */
	@Override
	public Boolean updateByPrimaryKeySelective(FileInfoVO record) {
		int count = fileInfoDao.updateByPrimaryKeySelective(record);
		return count > 0;
	}

}
